﻿using Lwk.MyLife.Core.CommonDtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lwk.MyLife.Core.Helpers
{
    public interface IHttpClientHelper
    {
        /// <summary>
        /// 通用调用webapi方法，POST
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="url"></param>
        /// <param name="data"></param>
        /// <returns></returns>
        Task<T> PostAsync<T>(string url, string data);

        /// <summary>
        /// 通用调用webapi方法，POST
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="url"></param>
        /// <param name="data"></param>
        /// <returns></returns>
        Task<CustomerActionResult> CustomerPostAsync(string url, string data);
    }
}
